package com.per.mybootall.dao;

import com.per.mybootall.pojo.Product;
import com.per.mybootall.vo.AdminLoadVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    Product selectAllForId(Integer peoductid);

    String selectNameForID(Integer id);

    List<AdminLoadVo> selectProductAndCategoryMessage(String productKind);

    int delectProductMessage(Integer productId);

    int updateProductStock(@Param("id") Long whatProudect, @Param("stock") int stock);

    int selectStockForId(Long id);
}